From 1326466309119c5e75a275c61bae8b3a3220d4d9 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Mon, 23 Jan 2012 21:00:38 +0100 Subject: [PATCH] Render background of a GtkImage Useful to e.g. style the bg color of a symbolic icon --- gtk/gtkimage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 45a8bba3a7..8551149bfd 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -1396,6 +1396,7 @@ gtk_image_draw (GtkWidget *widget, x = floor ((gtk_widget_get_allocated_width (widget) - width) * xalign); y = floor ((gtk_widget_get_allocated_height (widget) - height) * yalign); + gtk_render_background (context, cr, x, y, width, height); gtk_render_frame (context, cr, x, y, width, height); x += border.left; -- 2.30.2